package com.example.controller.product;

import com.example.pojo.Record;
import com.example.service.product.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: demo
 * @description: 商品审核表
 * @author: yc
 * @create: 2022-11-12 16:53
 **/
@Controller
@RequestMapping("/Record")
public class RecordController {

    @Autowired
    private RecordService service;

    /**
     * @Description: getRecord商品审核表
     * @Param: courseId商品审核表ID
     * @return: com.example.pojo.Record
     * @Author: yc
     * @Date: 2022/11/12 16:43
     */
    @CrossOrigin
    @ResponseBody
    @RequestMapping("/getRecord")
     public Record getRecord(Integer courseId){
        Record record = service.getRecord(courseId);
        return record;
    }


}
